package com.xgimi.open.skill.datamanager.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.xgimi.commons.base.Result;
import com.xgimi.open.skill.datamanager.biz.service.IntentSlotBizService;
import com.xgimi.open.skill.datamanager.service.api.IntentSlotRpcService;
import com.xgimi.open.skill.datamanager.service.response.IntentSlotRespDTO;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author coderzpw.zhang
 * @version 1.0
 * @description 描述
 * @date 2023/4/13 9:58
 */
@Service
public class IntentSlotRpcServiceImpl implements IntentSlotRpcService {
    @Autowired
    private IntentSlotBizService intentSlotBizService;

    @Override
    public Result<List<IntentSlotRespDTO>> listByIntentIds(List<Long> intentIds) {
        List<IntentSlotRespDTO> ret = intentSlotBizService.listByIntentIds(intentIds);
        return new Result<>(ret);
    }
}
